/*oss 解析图片*/
import oss from 'winged/utils/oss'
function parse(url,type = 'image',sizing = 'web-full',ishttp = false){
	if(ishttp){
		var url = url.replace(/^http.*\.com/,'')
	}
	if(type == 'voice'){
		return oss.sign(url)
	}else if(type == 'image'){
		return oss.signWithStyle(url,sizing)
	}
}
export default {
	parse:parse
}
